home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / Fight / bandit_kings.swf / scripts / frame_3 / DoAction.as
Text File  |  2006-07-26  |  708b  |  36 lines

  1. function drop_loot(item, x, y)
  2. {
  3.    i = 1;
  4.    while(i < 7)
  5.    {
  6.       if(_root[item + i]._currentFrame == 1)
  7.       {
  8.          _root[item + i]._x = x;
  9.          _root[item + i]._y = y;
  10.          _root[item + i].gotoAndStop(2);
  11.          i = 7;
  12.       }
  13.       else
  14.       {
  15.          i++;
  16.       }
  17.    }
  18. }
  19. speed = 2;
  20. speed_caravan = 1;
  21. speed_bag = 3;
  22. speed_chest = 4;
  23. groundlevel = 212;
  24. finished = false;
  25. s_sword1 = new Sound();
  26. s_sword1.attachSound("sword1");
  27. s_sword2 = new Sound();
  28. s_sword2.attachSound("sword2");
  29. s_hit1 = new Sound();
  30. s_hit1.attachSound("hit1");
  31. s_hit2 = new Sound();
  32. s_hit2.attachSound("hit2");
  33. s_money = new Sound();
  34. s_money.attachSound("money");
  35. nextFrame();
  36.